import request from '@/utils/request'

// 查询私车公用列表
export function listOaPrivateCarPublic(query) {
  return request({
    url: '/privateCarPublic/oaPrivateCarPublic/list',
    method: 'get',
    params: query
  })
}

// 查询私车公用详细
export function getOaPrivateCarPublic(id) {
  return request({
    url: '/privateCarPublic/oaPrivateCarPublic/' + id,
    method: 'get'
  })
}

// 保存私车公用
export function saveOaPrivateCarPublic(data) {
  return request({
    url: '/privateCarPublic/oaPrivateCarPublic/save',
    method: 'post',
    data: data
  })
}

// 删除私车公用
export function delOaPrivateCarPublic(id) {
  return request({
    url: '/privateCarPublic/oaPrivateCarPublic/' + id,
    method: 'delete'
  })
}

// 导出私车公用
export function exportOaPrivateCarPublic(query) {
  return request({
    url: '/privateCarPublic/oaPrivateCarPublic/export',
    method: 'get',
    params: query
  })
}
